package com.demo.freemarker.service.impl;

import com.demo.freemarker.mapper.UserMapper;
import com.demo.freemarker.model.User;
import com.demo.freemarker.model.UserExample;
import com.demo.freemarker.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: hps
 * @Description:
 * @Date: Created in 19:19 2018/7/1
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> getAll() {
        return userMapper.selectByExample(new UserExample());
    }
}
